package com.joolun.cloud.mall.common.feign;

import com.joolun.cloud.common.core.constant.SecurityConstants;
import com.joolun.cloud.common.core.constant.ServiceNameConstants;
import com.joolun.cloud.common.core.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author
 */
@FeignClient(contextId = "feignOrderInfoApiService", value = ServiceNameConstants.MALL_API_SERVICE)
public interface FeignOrderInfoApiService {

	/**
	 * 取消商城订单
	 * @param id
	 * @return
	 */
	@PutMapping("/orderinfo/inside/cancel/{id}")
	R orderCancelInside(@PathVariable("id") String id, @RequestHeader(SecurityConstants.FROM) String from);

}
